namespace QMVnSoft.ReportForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormKQT05Editor : FormListEditor
    {
        private ChkControl chkBold;
        private ChkControl chkIn_Ck;
        private IContainer components;
        private LabelControl lblBieu_Thuc;
        private LabelControl lblCong_Thuc;
        private LabelControl lblDesc_EN;
        private LabelControl lblDien_Giai;
        private LabelControl lblDieu_Chinh;
        private LabelControl lblIDKey;
        private LabelControl lblKieu_Ps;
        private LabelControl lblKieu_Ps0;
        private LabelControl lblSeries01;
        private LabelControl lblSeries02;
        private LabelControl lblStt_Bac;
        private LabelControl lblStt0;
        private LabelControl lblThue_GTGT;
        private LabelControl lblThue_XNK;
        private LabelControl lblThue_XNK0;
        private LabelControl lblVao_Ra;
        private LabelControl lblVao_Ra0;
        private TextControl txtBieu_Thuc;
        private TextControl txtCong_Thuc;
        private TextControl txtDesc_EN;
        private TextControl txtDien_Giai;
        private TextOption txtDieu_Chinh;
        private LabelControl txtDieu_Chinh0;
        private TextNumeric txtIDKey;
        private TextOption txtKieu_Ps;
        private TextControl txtSeries01;
        private TextControl txtSeries02;
        private TextNumeric txtStt_Bac;
        private TextControl txtStt0;
        private TextNumeric txtThue_GTGT;
        private TextOption txtThue_XNK;
        private TextOption txtVao_Ra;
        private TextOption txtVAT_Ck;

        public FormKQT05Editor()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(FormKQT05Editor));
            this.txtStt0 = new TextControl();
            this.lblStt0 = new LabelControl();
            this.txtDien_Giai = new TextControl();
            this.lblDien_Giai = new LabelControl();
            this.txtDesc_EN = new TextControl();
            this.lblDesc_EN = new LabelControl();
            this.txtIDKey = new TextNumeric();
            this.lblIDKey = new LabelControl();
            this.txtSeries01 = new TextControl();
            this.lblSeries01 = new LabelControl();
            this.txtSeries02 = new TextControl();
            this.lblSeries02 = new LabelControl();
            this.txtCong_Thuc = new TextControl();
            this.txtBieu_Thuc = new TextControl();
            this.lblCong_Thuc = new LabelControl();
            this.lblBieu_Thuc = new LabelControl();
            this.lblVao_Ra0 = new LabelControl();
            this.txtVao_Ra = new TextOption();
            this.lblVao_Ra = new LabelControl();
            this.lblDieu_Chinh = new LabelControl();
            this.txtDieu_Chinh = new TextOption();
            this.txtDieu_Chinh0 = new LabelControl();
            this.lblThue_XNK = new LabelControl();
            this.txtThue_XNK = new TextOption();
            this.lblThue_XNK0 = new LabelControl();
            this.lblKieu_Ps = new LabelControl();
            this.txtKieu_Ps = new TextOption();
            this.lblKieu_Ps0 = new LabelControl();
            this.chkIn_Ck = new ChkControl();
            this.chkBold = new ChkControl();
            this.lblStt_Bac = new LabelControl();
            this.txtStt_Bac = new TextNumeric();
            this.lblThue_GTGT = new LabelControl();
            this.txtThue_GTGT = new TextNumeric();
            this.txtVAT_Ck = new TextOption();
            base.SuspendLayout();
            base.txtMa_Loai3.FirstFilter = "Type = ''";
            base.txtMa_Loai3.Location = new Point(0x18c, 0x146);
            base.txtMa_Loai3.Size = new Size(0x85, 20);
            base.txtMa_Loai3.TabIndex = 0x13;
            base.txtMa_Loai2.FirstFilter = "Type = ''";
            base.txtMa_Loai2.Location = new Point(0x103, 0x146);
            base.txtMa_Loai2.Size = new Size(0x86, 20);
            base.txtMa_Loai2.TabIndex = 0x12;
            base.txtMa_Loai1.FirstFilter = "Type = ''";
            base.txtMa_Loai1.Location = new Point(0x7b, 0x146);
            base.txtMa_Loai1.Size = new Size(0x85, 20);
            base.txtMa_Loai1.TabIndex = 0x11;
            base.lblPhan_Loai.Location = new Point(12, 0x149);
            this.txtStt0.CheckTextSearched = false;
            this.txtStt0.DisabledForeColor = Color.Empty;
            this.txtStt0.Font = new Font("Arial", 8.25f);
            this.txtStt0.Location = new Point(0x18c, 0x1c);
            this.txtStt0.MaxLength = 0x20;
            this.txtStt0.Name = "txtStt0";
            this.txtStt0.OldValue = null;
            this.txtStt0.Size = new Size(0x85, 20);
            this.txtStt0.TabIndex = 1;
            this.txtStt0.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtStt0.UserTrimMode = AppInstance.TextControlTrimMode.None;
//            this.txtStt0.Value = null;//manager.GetObject("txtStt0.Value");
            this.lblStt0.AutoSize = true;
            this.lblStt0.Font = new Font("Arial", 8.25f);
            this.lblStt0.Location = new Point(0x16b, 0x1f);
            this.lblStt0.Name = "lblStt0";
            this.lblStt0.Size = new Size(0x1b, 14);
            this.lblStt0.TabIndex = 4;
            this.lblStt0.Text = "Mục";
            this.txtDien_Giai.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = Color.Empty;
            this.txtDien_Giai.Font = new Font("Arial", 8.25f);
            this.txtDien_Giai.Location = new Point(0x7b, 50);
            this.txtDien_Giai.MaxLength = 128;
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.Size = new Size(0x196, 20);
            this.txtDien_Giai.TabIndex = 2;
            this.txtDien_Giai.UserTextLength = AppInstance.TextControlLength.ItemDescription;
            this.txtDien_Giai.UserTrimMode = AppInstance.TextControlTrimMode.None;
//            this.txtDien_Giai.Value = null;//manager.GetObject("txtDien_Giai.Value");
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new Font("Arial", 8.25f);
            this.lblDien_Giai.Location = new Point(12, 0x35);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new Size(0x3e, 14);
            this.lblDien_Giai.TabIndex = 4;
            this.lblDien_Giai.Text = "Tên chỉ ti\x00eau";
            this.txtDesc_EN.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = Color.Empty;
            this.txtDesc_EN.Font = new Font("Arial", 8.25f);
            this.txtDesc_EN.Location = new Point(0x7b, 0x48);
            this.txtDesc_EN.MaxLength = 128;
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.Size = new Size(0x196, 20);
            this.txtDesc_EN.TabIndex = 3;
            this.txtDesc_EN.UserTextLength = AppInstance.TextControlLength.ItemDescription;
            this.txtDesc_EN.UserTrimMode = AppInstance.TextControlTrimMode.None;
//            this.txtDesc_EN.Value = null;//manager.GetObject("txtDesc_EN.Value");
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new Font("Arial", 8.25f);
            this.lblDesc_EN.Location = new Point(12, 0x4b);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new Size(0x6f, 14);
            this.lblDesc_EN.TabIndex = 4;
            this.lblDesc_EN.Text = "Tên chỉ ti\x00eau tiếng Anh";
            this.txtIDKey.Font = new Font("Arial", 8.25f);
            this.txtIDKey.Location = new Point(0x7b, 0x1c);
            this.txtIDKey.Name = "txtIDKey";
            this.txtIDKey.NumericScaleOnFocus = 0;
            this.txtIDKey.NumericScaleOnLostFocus = 0;
            int[] bits = new int[4];
            this.txtIDKey.NumericValue = new decimal(bits);
            this.txtIDKey.OldValue = null;
            this.txtIDKey.Size = new Size(0x85, 20);
            this.txtIDKey.TabIndex = 0;
            this.txtIDKey.TextAlign = HorizontalAlignment.Right;
//            this.txtIDKey.Value = null;//manager.GetObject("txtIDKey.Value");
            this.lblIDKey.AutoSize = true;
            this.lblIDKey.Font = new Font("Arial", 8.25f);
            this.lblIDKey.Location = new Point(12, 0x1f);
            this.lblIDKey.Name = "lblIDKey";
            this.lblIDKey.Size = new Size(0x34, 14);
            this.lblIDKey.TabIndex = 0x24;
            this.lblIDKey.Text = "Số thứ tự";
            this.txtSeries01.CheckTextSearched = false;
            this.txtSeries01.DisabledForeColor = Color.Empty;
            this.txtSeries01.Font = new Font("Arial", 8.25f);
            this.txtSeries01.Location = new Point(0x7b, 0x5e);
            this.txtSeries01.MaxLength = 0x20;
            this.txtSeries01.Name = "txtSeries01";
            this.txtSeries01.OldValue = null;
            this.txtSeries01.Size = new Size(0x85, 20);
            this.txtSeries01.TabIndex = 4;
            this.txtSeries01.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtSeries01.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtSeries01.Value = null;//manager.GetObject("txtSeries01.Value");
            this.lblSeries01.AutoSize = true;
            this.lblSeries01.Font = new Font("Arial", 8.25f);
            this.lblSeries01.Location = new Point(12, 0x61);
            this.lblSeries01.Name = "lblSeries01";
            this.lblSeries01.Size = new Size(0x53, 14);
            this.lblSeries01.TabIndex = 4;
            this.lblSeries01.Text = "Mã số tiền hàng";
            this.txtSeries02.CheckTextSearched = false;
            this.txtSeries02.DisabledForeColor = Color.Empty;
            this.txtSeries02.Font = new Font("Arial", 8.25f);
            this.txtSeries02.Location = new Point(0x18c, 0x5e);
            this.txtSeries02.MaxLength = 0x20;
            this.txtSeries02.Name = "txtSeries02";
            this.txtSeries02.OldValue = null;
            this.txtSeries02.Size = new Size(0x85, 20);
            this.txtSeries02.TabIndex = 5;
            this.txtSeries02.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtSeries02.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtSeries02.Value = null;//manager.GetObject("txtSeries02.Value");
            this.lblSeries02.AutoSize = true;
            this.lblSeries02.Font = new Font("Arial", 8.25f);
            this.lblSeries02.Location = new Point(310, 0x61);
            this.lblSeries02.Name = "lblSeries02";
            this.lblSeries02.Size = new Size(80, 14);
            this.lblSeries02.TabIndex = 4;
            this.lblSeries02.Text = "Mã số tiền thuế";
            this.txtCong_Thuc.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtCong_Thuc.CheckTextSearched = false;
            this.txtCong_Thuc.DisabledForeColor = Color.Empty;
            this.txtCong_Thuc.Font = new Font("Arial", 8.25f);
            this.txtCong_Thuc.Location = new Point(0x7b, 0x74);
            this.txtCong_Thuc.MaxLength = 128;
            this.txtCong_Thuc.Name = "txtCong_Thuc";
            this.txtCong_Thuc.OldValue = null;
            this.txtCong_Thuc.Size = new Size(0x196, 20);
            this.txtCong_Thuc.TabIndex = 6;
            this.txtCong_Thuc.UserTextLength = AppInstance.TextControlLength.ItemDescription;
            this.txtCong_Thuc.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtCong_Thuc.Value = null;//manager.GetObject("txtCong_Thuc.Value");
            this.txtBieu_Thuc.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtBieu_Thuc.CheckTextSearched = false;
            this.txtBieu_Thuc.DisabledForeColor = Color.Empty;
            this.txtBieu_Thuc.Font = new Font("Arial", 8.25f);
            this.txtBieu_Thuc.Location = new Point(0x7b, 0x8a);
            this.txtBieu_Thuc.MaxLength = 128;
            this.txtBieu_Thuc.Name = "txtBieu_Thuc";
            this.txtBieu_Thuc.OldValue = null;
            this.txtBieu_Thuc.Size = new Size(0x196, 20);
            this.txtBieu_Thuc.TabIndex = 7;
            this.txtBieu_Thuc.UserTextLength = AppInstance.TextControlLength.ItemDescription;
            this.txtBieu_Thuc.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtBieu_Thuc.Value = null;//manager.GetObject("txtBieu_Thuc.Value");
            this.lblCong_Thuc.AutoSize = true;
            this.lblCong_Thuc.Font = new Font("Arial", 8.25f);
            this.lblCong_Thuc.Location = new Point(12, 0x77);
            this.lblCong_Thuc.Name = "lblCong_Thuc";
            this.lblCong_Thuc.Size = new Size(0x39, 14);
            this.lblCong_Thuc.TabIndex = 4;
            this.lblCong_Thuc.Text = "Công thức";
            this.lblBieu_Thuc.AutoSize = true;
            this.lblBieu_Thuc.Font = new Font("Arial", 8.25f);
            this.lblBieu_Thuc.Location = new Point(12, 0x8d);
            this.lblBieu_Thuc.Name = "lblBieu_Thuc";
            this.lblBieu_Thuc.Size = new Size(0x35, 14);
            this.lblBieu_Thuc.TabIndex = 4;
            this.lblBieu_Thuc.Text = "Biểu thức";
            this.lblVao_Ra0.AutoSize = true;
            this.lblVao_Ra0.Font = new Font("Arial", 8.25f);
            this.lblVao_Ra0.ForeColor = Color.Blue;
            this.lblVao_Ra0.Location = new Point(0x98, 0xa3);
            this.lblVao_Ra0.Name = "lblVao_Ra0";
            this.lblVao_Ra0.Size = new Size(110, 14);
            this.lblVao_Ra0.TabIndex = 40;
            this.lblVao_Ra0.Text = "1-Đầu vào, 2- Đầu ra";
            this.txtVao_Ra.CharacterCasing = CharacterCasing.Upper;
            this.txtVao_Ra.CheckTextSearched = false;
            this.txtVao_Ra.DisabledForeColor = Color.Empty;
            this.txtVao_Ra.Font = new Font("Arial", 8.25f);
            this.txtVao_Ra.InputMask = "1,2";
            this.txtVao_Ra.Location = new Point(0x7b, 160);
            this.txtVao_Ra.Name = "txtVao_Ra";
            this.txtVao_Ra.OldValue = null;
            this.txtVao_Ra.Size = new Size(0x17, 20);
            this.txtVao_Ra.TabIndex = 8;
            this.txtVao_Ra.Text = "1";
            this.txtVao_Ra.Value = "1";
            this.lblVao_Ra.AutoSize = true;
            this.lblVao_Ra.Font = new Font("Arial", 8.25f);
            this.lblVao_Ra.Location = new Point(12, 0xa3);
            this.lblVao_Ra.Name = "lblVao_Ra";
            this.lblVao_Ra.Size = new Size(0x52, 14);
            this.lblVao_Ra.TabIndex = 0x27;
            this.lblVao_Ra.Text = "Loại thuế GTGT";
            this.lblDieu_Chinh.AutoSize = true;
            this.lblDieu_Chinh.Font = new Font("Arial", 8.25f);
            this.lblDieu_Chinh.Location = new Point(12, 0xb9);
            this.lblDieu_Chinh.Name = "lblDieu_Chinh";
            this.lblDieu_Chinh.Size = new Size(0x3a, 14);
            this.lblDieu_Chinh.TabIndex = 0x27;
            this.lblDieu_Chinh.Text = "Điều chỉnh";
            this.txtDieu_Chinh.CharacterCasing = CharacterCasing.Upper;
            this.txtDieu_Chinh.CheckTextSearched = false;
            this.txtDieu_Chinh.DisabledForeColor = Color.Empty;
            this.txtDieu_Chinh.Font = new Font("Arial", 8.25f);
            this.txtDieu_Chinh.InputMask = "1,2,3";
            this.txtDieu_Chinh.Location = new Point(0x7b, 0xb6);
            this.txtDieu_Chinh.Name = "txtDieu_Chinh";
            this.txtDieu_Chinh.OldValue = null;
            this.txtDieu_Chinh.Size = new Size(0x17, 20);
            this.txtDieu_Chinh.TabIndex = 9;
            this.txtDieu_Chinh.Text = "1";
            this.txtDieu_Chinh.Value = "1";
            this.txtDieu_Chinh0.AutoSize = true;
            this.txtDieu_Chinh0.Font = new Font("Arial", 8.25f);
            this.txtDieu_Chinh0.ForeColor = Color.Blue;
            this.txtDieu_Chinh0.Location = new Point(0x98, 0xb9);
            this.txtDieu_Chinh0.Name = "txtDieu_Chinh0";
            this.txtDieu_Chinh0.Size = new Size(0xf4, 14);
            this.txtDieu_Chinh0.TabIndex = 40;
            this.txtDieu_Chinh0.Text = "1-Phát sinh, 2-Điều chỉnh tăng, 3-Điều chỉnh giảm";
            this.lblThue_XNK.AutoSize = true;
            this.lblThue_XNK.Font = new Font("Arial", 8.25f);
            this.lblThue_XNK.Location = new Point(12, 0xcf);
            this.lblThue_XNK.Name = "lblThue_XNK";
            this.lblThue_XNK.Size = new Size(0x6d, 14);
            this.lblThue_XNK.TabIndex = 0x27;
            this.lblThue_XNK.Text = "hàng xuất nhập khẩu";
            this.txtThue_XNK.CharacterCasing = CharacterCasing.Upper;
            this.txtThue_XNK.CheckTextSearched = false;
            this.txtThue_XNK.DisabledForeColor = Color.Empty;
            this.txtThue_XNK.Font = new Font("Arial", 8.25f);
            this.txtThue_XNK.InputMask = "*,1,2";
            this.txtThue_XNK.Location = new Point(0x7b, 0xcc);
            this.txtThue_XNK.Name = "txtThue_XNK";
            this.txtThue_XNK.OldValue = null;
            this.txtThue_XNK.Size = new Size(0x17, 20);
            this.txtThue_XNK.TabIndex = 10;
            this.txtThue_XNK.Text = "*";
            this.txtThue_XNK.Value = "*";
            this.lblThue_XNK0.AutoSize = true;
            this.lblThue_XNK0.Font = new Font("Arial", 8.25f);
            this.lblThue_XNK0.ForeColor = Color.Blue;
            this.lblThue_XNK0.Location = new Point(0x98, 0xcf);
            this.lblThue_XNK0.Name = "lblThue_XNK0";
            this.lblThue_XNK0.Size = new Size(0x105, 14);
            this.lblThue_XNK0.TabIndex = 40;
            this.lblThue_XNK0.Text = "*-Tất cả, 1-hàng xuất nhập khẩu, 2-hàng trong nước";
            this.lblKieu_Ps.AutoSize = true;
            this.lblKieu_Ps.Font = new Font("Arial", 8.25f);
            this.lblKieu_Ps.Location = new Point(12, 0xe5);
            this.lblKieu_Ps.Name = "lblKieu_Ps";
            this.lblKieu_Ps.Size = new Size(0x40, 14);
            this.lblKieu_Ps.TabIndex = 0x27;
            this.lblKieu_Ps.Text = "Loại chỉ ti\x00eau";
            this.txtKieu_Ps.CharacterCasing = CharacterCasing.Upper;
            this.txtKieu_Ps.CheckTextSearched = false;
            this.txtKieu_Ps.DisabledForeColor = Color.Empty;
            this.txtKieu_Ps.Font = new Font("Arial", 8.25f);
            this.txtKieu_Ps.InputMask = "1,2";
            this.txtKieu_Ps.Location = new Point(0x7b, 0xe2);
            this.txtKieu_Ps.Name = "txtKieu_Ps";
            this.txtKieu_Ps.OldValue = null;
            this.txtKieu_Ps.Size = new Size(0x17, 20);
            this.txtKieu_Ps.TabIndex = 11;
            this.txtKieu_Ps.Text = "1";
            this.txtKieu_Ps.Value = "1";
            this.lblKieu_Ps0.AutoSize = true;
            this.lblKieu_Ps0.Font = new Font("Arial", 8.25f);
            this.lblKieu_Ps0.ForeColor = Color.Blue;
            this.lblKieu_Ps0.Location = new Point(0x98, 0xe5);
            this.lblKieu_Ps0.Name = "lblKieu_Ps0";
            this.lblKieu_Ps0.Size = new Size(0x6a, 14);
            this.lblKieu_Ps0.TabIndex = 40;
            this.lblKieu_Ps0.Text = "1-Số dư, 2-Phát sinh";
            this.chkIn_Ck.AutoSize = true;
            this.chkIn_Ck.Font = new Font("Arial", 8.25f);
            this.chkIn_Ck.Location = new Point(0x7b, 0x114);
            this.chkIn_Ck.Name = "chkIn_Ck";
            this.chkIn_Ck.Size = new Size(0x22, 0x12);
            this.chkIn_Ck.TabIndex = 15;
            this.chkIn_Ck.Text = "In";
            this.chkIn_Ck.UseVisualStyleBackColor = true;
            this.chkBold.AutoSize = true;
            this.chkBold.Font = new Font("Arial", 8.25f);
            this.chkBold.Location = new Point(0x7b, 300);
            this.chkBold.Name = "chkBold";
            this.chkBold.Size = new Size(0x39, 0x12);
            this.chkBold.TabIndex = 0x10;
            this.chkBold.Text = "In đậm";
            this.chkBold.UseVisualStyleBackColor = true;
            this.lblStt_Bac.AutoSize = true;
            this.lblStt_Bac.Font = new Font("Arial", 8.25f);
            this.lblStt_Bac.Location = new Point(12, 0xfb);
            this.lblStt_Bac.Name = "lblStt_Bac";
            this.lblStt_Bac.Size = new Size(0x3f, 14);
            this.lblStt_Bac.TabIndex = 0x24;
            this.lblStt_Bac.Text = "Bậc chỉ ti\x00eau";
            this.txtStt_Bac.Font = new Font("Arial", 8.25f);
            this.txtStt_Bac.Location = new Point(0x7b, 0xf8);
            this.txtStt_Bac.Name = "txtStt_Bac";
            this.txtStt_Bac.NumericScaleOnFocus = 0;
            this.txtStt_Bac.NumericScaleOnLostFocus = 0;
            int[] numArray2 = new int[4];
            this.txtStt_Bac.NumericValue = new decimal(numArray2);
            this.txtStt_Bac.OldValue = null;
            this.txtStt_Bac.Size = new Size(0x85, 20);
            this.txtStt_Bac.TabIndex = 12;
            this.txtStt_Bac.TextAlign = HorizontalAlignment.Right;
//            this.txtStt_Bac.Value = null;//manager.GetObject("txtStt_Bac.Value");
            this.lblThue_GTGT.AutoSize = true;
            this.lblThue_GTGT.Font = new Font("Arial", 8.25f);
            this.lblThue_GTGT.Location = new Point(0x152, 0xfb);
            this.lblThue_GTGT.Name = "lblThue_GTGT";
            this.lblThue_GTGT.Size = new Size(0x37, 14);
            this.lblThue_GTGT.TabIndex = 0x24;
            this.lblThue_GTGT.Text = "Thuế suất";
            this.txtThue_GTGT.Font = new Font("Arial", 8.25f);
            this.txtThue_GTGT.Location = new Point(420, 0xf8);
            this.txtThue_GTGT.Name = "txtThue_GTGT";
            this.txtThue_GTGT.NumericScaleOnFocus = 0;
            this.txtThue_GTGT.NumericScaleOnLostFocus = 0;
            int[] numArray3 = new int[4];
            this.txtThue_GTGT.NumericValue = new decimal(numArray3);
            this.txtThue_GTGT.OldValue = null;
            this.txtThue_GTGT.Size = new Size(0x6d, 20);
            this.txtThue_GTGT.TabIndex = 14;
            this.txtThue_GTGT.TextAlign = HorizontalAlignment.Right;
//            this.txtThue_GTGT.Value = null;//manager.GetObject("txtThue_GTGT.Value");
            this.txtVAT_Ck.CharacterCasing = CharacterCasing.Upper;
            this.txtVAT_Ck.CheckTextSearched = false;
            this.txtVAT_Ck.DisabledForeColor = Color.Empty;
            this.txtVAT_Ck.Font = new Font("Arial", 8.25f);
            this.txtVAT_Ck.InputMask = "C,K";
            this.txtVAT_Ck.Location = new Point(0x18c, 0xf8);
            this.txtVAT_Ck.Name = "txtVAT_Ck";
            this.txtVAT_Ck.OldValue = null;
            this.txtVAT_Ck.Size = new Size(0x17, 20);
            this.txtVAT_Ck.TabIndex = 13;
            this.txtVAT_Ck.Text = "C";
            this.txtVAT_Ck.Value = "C";
            base.AddTitleText = "Thêm chỉ ti\x00eau mới";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.ClientSize = new Size(0x222, 360);
            base.Controls.Add(this.chkBold);
            base.Controls.Add(this.chkIn_Ck);
            base.Controls.Add(this.lblKieu_Ps0);
            base.Controls.Add(this.txtKieu_Ps);
            base.Controls.Add(this.lblThue_XNK0);
            base.Controls.Add(this.txtVAT_Ck);
            base.Controls.Add(this.txtThue_XNK);
            base.Controls.Add(this.txtDieu_Chinh0);
            base.Controls.Add(this.lblKieu_Ps);
            base.Controls.Add(this.txtDieu_Chinh);
            base.Controls.Add(this.lblThue_XNK);
            base.Controls.Add(this.lblVao_Ra0);
            base.Controls.Add(this.lblDieu_Chinh);
            base.Controls.Add(this.txtVao_Ra);
            base.Controls.Add(this.lblVao_Ra);
            base.Controls.Add(this.txtThue_GTGT);
            base.Controls.Add(this.lblThue_GTGT);
            base.Controls.Add(this.txtStt_Bac);
            base.Controls.Add(this.lblStt_Bac);
            base.Controls.Add(this.txtIDKey);
            base.Controls.Add(this.lblIDKey);
            base.Controls.Add(this.lblBieu_Thuc);
            base.Controls.Add(this.lblDesc_EN);
            base.Controls.Add(this.lblCong_Thuc);
            base.Controls.Add(this.lblDien_Giai);
            base.Controls.Add(this.lblSeries02);
            base.Controls.Add(this.lblSeries01);
            base.Controls.Add(this.lblStt0);
            base.Controls.Add(this.txtBieu_Thuc);
            base.Controls.Add(this.txtCong_Thuc);
            base.Controls.Add(this.txtDesc_EN);
            base.Controls.Add(this.txtDien_Giai);
            base.Controls.Add(this.txtSeries02);
            base.Controls.Add(this.txtSeries01);
            base.Controls.Add(this.txtStt0);
            base.EditTitleText = "Sửa chỉ ti\x00eau";
            base.FirstFreeCode = "";
            base.Name = "FormKQT05Editor";
            base.SecondFreeCode = "";
            this.Text = "Thêm chỉ ti\x00eau mới";
            base.ThirdFreeCode = "";
            base.Controls.SetChildIndex(base.lblPhan_Loai, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai1, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai2, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai3, 0);
            base.Controls.SetChildIndex(this.txtStt0, 0);
            base.Controls.SetChildIndex(this.txtSeries01, 0);
            base.Controls.SetChildIndex(this.txtSeries02, 0);
            base.Controls.SetChildIndex(this.txtDien_Giai, 0);
            base.Controls.SetChildIndex(this.txtDesc_EN, 0);
            base.Controls.SetChildIndex(this.txtCong_Thuc, 0);
            base.Controls.SetChildIndex(this.txtBieu_Thuc, 0);
            base.Controls.SetChildIndex(this.lblStt0, 0);
            base.Controls.SetChildIndex(this.lblSeries01, 0);
            base.Controls.SetChildIndex(this.lblSeries02, 0);
            base.Controls.SetChildIndex(this.lblDien_Giai, 0);
            base.Controls.SetChildIndex(this.lblCong_Thuc, 0);
            base.Controls.SetChildIndex(this.lblDesc_EN, 0);
            base.Controls.SetChildIndex(this.lblBieu_Thuc, 0);
            base.Controls.SetChildIndex(this.lblIDKey, 0);
            base.Controls.SetChildIndex(this.txtIDKey, 0);
            base.Controls.SetChildIndex(this.lblStt_Bac, 0);
            base.Controls.SetChildIndex(this.txtStt_Bac, 0);
            base.Controls.SetChildIndex(this.lblThue_GTGT, 0);
            base.Controls.SetChildIndex(this.txtThue_GTGT, 0);
            base.Controls.SetChildIndex(this.lblVao_Ra, 0);
            base.Controls.SetChildIndex(this.txtVao_Ra, 0);
            base.Controls.SetChildIndex(this.lblDieu_Chinh, 0);
            base.Controls.SetChildIndex(this.lblVao_Ra0, 0);
            base.Controls.SetChildIndex(this.lblThue_XNK, 0);
            base.Controls.SetChildIndex(this.txtDieu_Chinh, 0);
            base.Controls.SetChildIndex(this.lblKieu_Ps, 0);
            base.Controls.SetChildIndex(this.txtDieu_Chinh0, 0);
            base.Controls.SetChildIndex(this.txtThue_XNK, 0);
            base.Controls.SetChildIndex(this.txtVAT_Ck, 0);
            base.Controls.SetChildIndex(this.lblThue_XNK0, 0);
            base.Controls.SetChildIndex(this.txtKieu_Ps, 0);
            base.Controls.SetChildIndex(this.lblKieu_Ps0, 0);
            base.Controls.SetChildIndex(this.chkIn_Ck, 0);
            base.Controls.SetChildIndex(this.chkBold, 0);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (this.txtIDKey.NumericValue == 0M)
            {
                MessageBox.Show("Chưa nhập số thứ tự chỉ ti\x00eau!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtDien_Giai.Text))
            {
                MessageBox.Show("Chưa nhập tên chỉ ti\x00eau!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            localCurrentRow["IDKey"] = this.txtIDKey.Value;
            localCurrentRow["Stt0"] = this.txtStt0.Value;
            localCurrentRow["Dien_Giai"] = this.txtDien_Giai.Value;
            localCurrentRow["Desc_EN"] = this.txtDesc_EN.Value;
            localCurrentRow["Series01"] = this.txtSeries01.Value;
            localCurrentRow["Series02"] = this.txtSeries02.Value;
            localCurrentRow["Cong_Thuc"] = this.txtCong_Thuc.Value;
            localCurrentRow["Bieu_Thuc"] = this.txtBieu_Thuc.Value;
            localCurrentRow["Vao_Ra"] = this.txtVao_Ra.Value;
            localCurrentRow["Dieu_Chinh"] = this.txtDieu_Chinh.Value;
            localCurrentRow["Thue_XNK"] = this.txtThue_XNK.Value;
            localCurrentRow["Kieu_Ps"] = this.txtKieu_Ps.Value;
            localCurrentRow["Stt_Bac"] = this.txtStt_Bac.Value;
            localCurrentRow["VAT_Ck"] = this.txtVAT_Ck.Value;
            localCurrentRow["Thue_GTGT"] = this.txtThue_GTGT.Value;
            localCurrentRow["In_Ck"] = this.chkIn_Ck.Checked;
            localCurrentRow["Bold"] = this.chkBold.Checked;
            ReportDeclarationDataAccess access = new ReportDeclarationDataAccess();
            if (base.ShowMessage(localCurrentRow, access.KQT05Save(base.NewChecked, localCurrentRow)))
            {
                return false;
            }
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtIDKey.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtIDKey.Value = base.LocalCurrentRow["IDKey"];
            this.txtStt0.Value = base.LocalCurrentRow["Stt0"];
            this.txtDien_Giai.Value = base.LocalCurrentRow["Dien_Giai"];
            this.txtDesc_EN.Value = base.LocalCurrentRow["Desc_EN"];
            this.txtSeries01.Value = base.LocalCurrentRow["Series01"];
            this.txtSeries02.Value = base.LocalCurrentRow["Series02"];
            this.txtCong_Thuc.Value = base.LocalCurrentRow["Cong_Thuc"];
            this.txtBieu_Thuc.Value = base.LocalCurrentRow["Bieu_Thuc"];
            this.txtVao_Ra.Value = base.LocalCurrentRow["Vao_Ra"];
            this.txtDieu_Chinh.Value = base.LocalCurrentRow["Dieu_Chinh"];
            this.txtThue_XNK.Value = base.LocalCurrentRow["Thue_XNK"];
            this.txtKieu_Ps.Value = base.LocalCurrentRow["Kieu_Ps"];
            this.txtStt_Bac.Value = base.LocalCurrentRow["Stt_Bac"];
            this.txtVAT_Ck.Value = base.LocalCurrentRow["VAT_Ck"];
            this.txtThue_GTGT.Value = base.LocalCurrentRow["Thue_GTGT"];
            this.chkIn_Ck.Checked = (bool) base.LocalCurrentRow["In_Ck"];
            this.chkBold.Checked = (bool) base.LocalCurrentRow["Bold"];
            base.OnShow();
        }
    }
}

